/* 
* Copyright (C) 2011-2018 ShenZhen iBOXSaaS Information Technology Co.,Ltd. 
* 
* All right reserved. 
* 
* This software is the confidential and proprietary 
* information of iBOXSaaS Company of China. 
* ("Confidential Information"). You shall not disclose 
* such Confidential Information and shall use it only 
* in accordance with the terms of the contract agreement 
* you entered into with iBOXSaaS inc. 
* 
*/

package com.iboxpay.open.gateway.service;

import javax.servlet.http.HttpServletRequest;

import io.jsonwebtoken.Claims;

/**
 * token验证
 * TokenValidateService.java
 * @author xuxiao
 * @date 2018/06/22
 */
public interface TokenValidateService {
    
    /**
     * 针对请求参数中的token进行验证
     * @param request
     */
    public Claims tokenValidate(HttpServletRequest request);

    /**
     * 根据tokenId获取userId
     * @param openId
     * @return
     */
    public String getUserId(Long tokenId);
}
